package com.yanlight.app.request;

import java.util.SortedMap;
import java.util.TreeMap;

public class MicroApplyStatusRequest {

    private String version = "1.0";

    private String mch_id;

    private String nonce_str;

    private String sign_type = "HMAC-SHA256";

    private String sign;

    private String applyment_id;

    private String business_code;

    public SortedMap<String, String> setupParams() {
        SortedMap<String, String> paramsMap = new TreeMap<>();
        paramsMap.put("version", getVersion());
        paramsMap.put("mch_id", getMch_id());
        paramsMap.put("nonce_str", getNonce_str());
        paramsMap.put("sign_type", getSign_type());
        paramsMap.put("applyment_id", getApplyment_id());
        paramsMap.put("business_code", getBusiness_code());
        return paramsMap;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getApplyment_id() {
        return applyment_id;
    }

    public void setApplyment_id(String applyment_id) {
        this.applyment_id = applyment_id;
    }

    public String getBusiness_code() {
        return business_code;
    }

    public void setBusiness_code(String business_code) {
        this.business_code = business_code;
    }
}
